# 编写一个员工类(Employee), 每次实例化该类后会自动记录+1，要求最后统计输出员工类总共实例化了多少对象。
class Employee:
    name = ""
    age = 0
    count = 0
    def __init__(self, n, a):
        self.name = n
        self.age = a
        Employee.count += 1
    def sayHello(self):
        print("Hello")
x = Employee("张三", 29)
y = Employee("李四", 32)
print(Employee.count)